package com.example.carrierapp.bean.dispatch;

import java.util.List;

public class DispatchHistoryBean {
    int totalCount;// (integer, optional),
    List<DispatchHistoryInfo> items;// (Array[Logistics.Application.CarrierApp.WaybillRecord.WaybillRecordDto], optional)

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<DispatchHistoryInfo> getItems() {
        return items;
    }

    public void setItems(List<DispatchHistoryInfo> items) {
        this.items = items;
    }

    public class DispatchHistoryInfo {
        public String code;//记录编码 ,
        public int waybillId;//发货计划单ID ,
        public int driverId;// 司机id ,
        public String driverName;//司机姓名 ,
        public String driverPhone;//驾驶员电话 ,
        public int carId;//  车辆Id ,
        public String carNumber;//车牌号 ,
        public int carPhotosId;//车辆图片 ,
        public String carPhotoPath;// 车辆图片路径 ,
        public double expectedWeight;//预计运量 ,
        public int limitCount;//限制次数 ,
        public int transCount;// 司机自行调度次数 ,
        public int competedTransTimes;// 已完成运输次数 ,
        public double competedTransNum;// 已完成运输运量,
        public boolean isMultiple;// 是否多次运输 ,
        public String endTime;//结束时间 ,
        public String validityPeriod;//结束时间 ,
        public String proName;// 货物名称 ,
        public int unit;//单位 =['1','2','4'],
        public String unitName;// 单们名称 ,
        public int state;//调度状态 =['0','1','2','3','4'],
        public String stateName;//调度装态名称 ,
        public int remainingTransTimes;// 剩余运输次数 ,
        public double remainingTransNum;// 剩余运量 ,
        public int id;//(integer, optional)
        public int dispatchId;//(integer, optional)

        @Override
        public String toString() {
            return "DispatchHistoryInfo{" +
                    "waybillCode='" + code + '\'' +
                    ", waybillId=" + waybillId +
                    ", driverMainId=" + driverId +
                    ", driverName='" + driverName + '\'' +
                    ", driverPhone='" + driverPhone + '\'' +
                    ", carId=" + carId +
                    ", carNumber='" + carNumber + '\'' +
                    ", carPhotosId=" + carPhotosId +
                    ", carPhotoPath='" + carPhotoPath + '\'' +
                    ", expectedWeight=" + expectedWeight +
                    ", limitCount=" + limitCount +
                    ", transCount=" + transCount +
                    ", competedTransTimes=" + competedTransTimes +
                    ", competedTransNum=" + competedTransNum +
                    ", isMultiple=" + isMultiple +
                    ", endTime='" + endTime + '\'' +
                    ", validityPeriod='" + validityPeriod + '\'' +
                    ", proName='" + proName + '\'' +
                    ", unit=" + unit +
                    ", unitName='" + unitName + '\'' +
                    ", state=" + state +
                    ", stateName='" + stateName + '\'' +
                    ", remainingTransTimes=" + remainingTransTimes +
                    ", remainingTransNum=" + remainingTransNum +
                    ", id=" + id +
                    ", dispatchId=" + dispatchId +
                    '}';
        }
    }
}